<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"      
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:c="http://java.sun.com/jsp/jstl/core">
	
    <h:body>	
    	<ui:composition template="/user/template.xhtml">
    		    <h1>Další kontakty (ČMFS, OFS)</h1> 
                <table>
                  <tr>
                      <th>Jméno</th>
                      <th>Telefon</th>
                      <th>E-mail</th>
                  </tr>
                  <ui:repeat var="contact" value="#{contactBean.contactListDalsi}" varStatus="status">
                    <tr>
                      <td class="jmeno2">
                      <h:commandLink action="kontaktdetail.xhtml" title="detail" value="#{contact.firstname} #{contact.surname}" style="color:black;">
    							<f:setPropertyActionListener target="#{contactBean.idContact}" value="#{contact.id}" />
					  </h:commandLink>
					  </td>
					  <td>#{contact.phone}</td>
                      <td>#{contact.email}</td>
                    </tr>
                  </ui:repeat>
                </table>
    	</ui:composition>
	</h:body>
</html>